package day02;

import java.util.Scanner;

public class MyStringTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s=sc.next();
        if (s.contains("name"))
        {
            System.out.println(s.indexOf("name"));
        }
        s=s.toUpperCase();
        StringBuilder S=new StringBuilder(s);
        System.out.println(S.reverse());

    }

            }